<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<script type="text/javascript">
$(function() {
	window.setTimeout(function() {
		parent.$.messager.progress('close');
	}, 1);

	$('#form').form({
		url : '${pageContext.request.contextPath}/business/accounting/danjuqueren/update.shtml',
		onSubmit : function() {
			parent.$.messager.progress({
				title : '提示',
				text : '数据处理中，请稍后....'
			});
			var isValid = $(this).form('validate');
			if (!isValid) {
				parent.$.messager.progress('close');
			}
			return isValid;
		},
		
		success : function(result) {
			parent.$.messager.progress('close');
			result = $.parseJSON(result);
			if (result.success) {
				$.messager.alert('通知',"修改成功！");
				parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
				parent.$.modalDialog.handler.dialog('close');
			} else {
				parent.$.messager.alert('错误', result.msg, 'error');
			}
		}
	});
});
</script>
<div class="div_center">
	<div class="easyui-layout" data-options="fit:true,border:false">
		<div data-options="region:'center',border:false" title="" style="overflow: hidden;">
			<form id="form" method="post" enctype="multipart/form-data" >
				<table class="form_view_border" border="1px" cellpadding="0" cellspacing="0" id="table_id">
				<tr>
					<th class="panel-header" >附件单据数</th>
					<td><input name="FJDJS" type="text" class="span2" style="width:200px; height: 27px;" value="${HZJZPZ.FJDJS}" class="form_view_input combo easyui-combobox"  ></td>
				</tr>
				<tr style="display:none">
					<th class="panel-header" >ID</th>
					<td><input name="ID" type="text" class="span2" style="width:200px; height: 27px;" value="${HZJZPZ.ID}" class="form_view_input combo easyui-combobox"  ></td>
				</tr>
				<tr>
					<th class="panel-header" >摘要</th>
					<td><input name="ZHAIYAO" type="text" class="span2" style="width:200px; height: 27px;" value="${HZJZPZ.ZHAIYAO}" class="form_view_input combo easyui-combobox"  ></td>
				</tr>
				<tr>
					<th class="panel-header" >显示凭证号</th>
					<td><input name="XSPZH" type="text" class="span2" style="width:200px; height: 27px;" value="${HZJZPZ.XSPZH}" class="form_view_input combo easyui-combobox"  ></td>
				</tr>
				
				</table>
			</form>
		</div>
	</div>
</div>